/*
 * LiquidBounce Hacked Client
 * A free open source mixin-based injection hacked client for Minecraft using Minecraft Forge.
 * https://github.com/CCBlueX/LiquidBounce/
 */
package net.ccbluex.liquidbounce.features.module.modules.exploit

import net.ccbluex.liquidbounce.event.EventTarget
import net.ccbluex.liquidbounce.event.PacketEvent
import net.ccbluex.liquidbounce.features.module.Module
import net.ccbluex.liquidbounce.features.module.ModuleCategory
import net.ccbluex.liquidbounce.features.module.ModuleInfo

@ModuleInfo(name = "MoreCarry", description = "Allows you to store items in your crafting slots.", category = ModuleCategory.EXPLOIT)
class MoreCarry : Module() {

    @EventTarget
    fun onPacket(event: PacketEvent) {
        if (classProvider.isCPacketCloseWindow(event.packet))
            event.cancelEvent()
    }

}